package com.ruoyi.business.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * comment对象 comment
 *
 * @author 吴倩芸
 * @date 2023-03-04
 */
@Data
@TableName("comment")
public class Comment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 父id
     */
    @Excel(name = "父id")
    @TableField(value = "parent_d")
    private Long parentId;

    /**
     * 关联用户表
     */
    @Excel(name = "关联用户表")
    @TableField(value = "comment_user")
    private Long commentUser;

    /**
     * 评论时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "comment_time")
    private Date commentTime;

    /**
     * 点赞数
     */
    @Excel(name = "点赞数")
    @TableField(value = "fabulous")
    private Integer fabulous;

    /**
     * 评论内容
     */
    @Excel(name = "评论内容")
    @TableField(value = "comment_context")
    private String commentContext;

    /**
     * 踩的数量
     */
    @Excel(name = "踩的数量")
    @TableField(value = "stamp")
    private Long stamp;

    /**
     * 回复数
     */
    @Excel(name = "回复数")
    @TableField(value = "reply")
    private Integer reply;

    /**
     * 被回复的人
     */
    @Excel(name = "被回复的人")
    @TableField(value = "reply_user")
    private Long replyUser;

    /**
     * 课程id
     */
    @Excel(name = "课程id")
    @TableField(value = "course_id")
    private Long courseId;


}
